package com.tech.connect.huanzhewan;

import android.content.Context;
import android.support.v4.widget.NestedScrollView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.tech.connect.R;
import com.tech.connect.view.IndexImageLayout;

import java.util.ArrayList;
import java.util.List;

public class WuPinView extends NestedScrollView {

    private ImageView ivSex;
    private TextView tvName;
    private TextView tvAddress;
    private IndexImageLayout viewPager;
    private TextView tvChangeExtra;
    private TextView tvChangeTitle;
    private TextView tvChangeCat;
    private TextView tvTag;
    private TextView tvExtra;
    private TextView tvCat;
    private TextView tvTitle;
    private TextView tvAge;
    private ImageView ivPraise;
    private TextView tvPraise;
    private LinearLayout llFavorite;
    private ImageView ivFavorite;
    private TextView tvFavorite;
    private LinearLayout llPraise;

    public WuPinView(Context context) {
        this(context, null);
    }

    public WuPinView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.layout_wupin, this, true);
        initView();
    }

    private void initView() {
        viewPager = findViewById(R.id.viewPager);
        llPraise = findViewById(R.id.llPraise);
        ivPraise = findViewById(R.id.ivPraise);
        tvPraise = findViewById(R.id.tvPraise);
        llFavorite = findViewById(R.id.llFavorite);
        ivFavorite = findViewById(R.id.ivFavorite);
        tvFavorite = findViewById(R.id.tvFavorite);
        tvTitle = findViewById(R.id.tvTitle);
        tvCat = findViewById(R.id.tvCat);
        tvExtra = findViewById(R.id.tvExtra);

        tvName = findViewById(R.id.tvName);
        ivSex = findViewById(R.id.ivSex);
        tvAge = findViewById(R.id.tvAge);
        tvAddress = findViewById(R.id.tvAddress);
        tvTag = findViewById(R.id.tvTag);
        tvChangeCat = findViewById(R.id.tvChangeCat);
        tvChangeTitle = findViewById(R.id.tvChangeTitle);
        tvChangeExtra = findViewById(R.id.tvChangeExtra);


        List<String> strings = new ArrayList<>();
        strings.add("");
        strings.add("");
        strings.add("");
        strings.add("");
        strings.add("");
        viewPager.updateImages(strings, 0);
    }

    public void update() {

    }


}
